package com.tuanzi.loan.business.service.galaxycard.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.retry.RetryException;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tuanzi.loan.business.repository.galaxycard.GalaxyCardPromoteChannelUserRightRepository;
import com.tuanzi.loan.business.service.galaxycard.GalaxyCardPromoteChannelUserRightService;
import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.galaxycard.GalaxyCardPromoteChannelUserRightRequest;
import com.tuanzi.loan.vo.response.galaxycard.GalaxyCardPromoteChannelUserRightResponse;

@Debug
@Service
@Transactional
@Retryable(value = { RetryException.class })
public class GalaxyCardPromoteChannelUserRightServiceImpl implements GalaxyCardPromoteChannelUserRightService{
	
	@Autowired
	private GalaxyCardPromoteChannelUserRightRepository galaxyCardPromoteChannelUserRightRepository;

	@Override
	public Page<GalaxyCardPromoteChannelUserRightResponse> list(
			PageSearcher<GalaxyCardPromoteChannelUserRightRequest> pageSearcher) {
		return galaxyCardPromoteChannelUserRightRepository.list(pageSearcher.getSearchCondition(), pageSearcher.getPageable());
	}

	

}
